<{include file="header.html"}>

<script type="text/javascript">
function checkValidForm()
{
    var title = document.getElementById("TITLE");
    var pos = document.getElementById("POS");
    

    if(title.value == "")
    {
        showErrorBubble(title, "<{$smarty.const._MSG_TITLE_IS_EMPTY|utf8_escape_js}>");
        return false;
    }
    if(!isNumeric(pos.value))
    {
        showErrorBubble(pos, "<{$smarty.const._MSG_POSITION_INVALID|utf8_escape_js}>");
        return false;
    }
   
    document.frmEdit.submit();
}

</script>
	<div id="form_add" class="one_center">
		<div class="box_two_third">
			<div class="box_head"><{$lb_head_box}></div>

			<div class="box_content">
				<div class="message">
					<{include file="message.html"}>
				</div>

				<form action="#" method="post" name="frmEdit">
					<table class="formInput">
					<tbody>
					 <tr>
						<td><{$smarty.const._LB_TITLE|utf8_escape_html}>
							<font color="#ff0000">*</font>
							:
						</td>
						<td>
							<input type="text" size="255" value="<{$aboutUs->TITLE|utf8_escape_html}>" id="TITLE" name="TITLE"/>
						</td>
					 </tr>
					 <tr>
						<td><{$smarty.const._LB_SHORT_DESCRIPTION|utf8_escape_html}> :
						</td>
                                                <td>
							<textarea cols="30" class="user_form_textarea" id="SHORT_DESCRIPTION" name="SHORT_DESCRIPTION"><{$aboutUs->SHORT_DESCRIPTION|utf8_escape_textarea}></textarea>
						</td>
					 </tr>
					 <tr>
						<td><{$smarty.const._LB_DESCRIPTION|utf8_escape_html}> :
						</td>
						<td>
							<textarea cols="100" class="user_form_textarea" id="DESCRIPTION" name="DESCRIPTION"><{$aboutUs->DESCRIPTION|utf8_escape_textarea}></textarea>
						</td>
					 </tr>
					 <tr>
						<td><{$smarty.const._LB_PAGE_POS|utf8_escape_html}> :
						</td>
                                                <td>
							<input type="text" size="3" maxlength="2" value="<{$aboutUs->POS}>" id="POS" name="POS"/>
						</td>
						
                                         </tr>
					 <tr>
						<td><{$smarty.const._LB_STATUS|utf8_escape_html}> :
						</td>
						<td>
                                                    <input type="checkbox" value="1" <{if $aboutUs->STATUS}>checked="checked"<{/if}> id="STATUS" name="STATUS"/>
						</td>
					 </tr>
					 <tr>
						<td class="submit" colspan="2" style="padding-top: 5px;">
							<a class="tribullet" id="btnReturn" href="<{$backlink}>"><{$smarty.const._LB_BACK}></a>
							&nbsp;&nbsp;
							<a class="tribullet" href="#" onclick="checkValidForm();"><{$smarty.const._LB_VALIDATE}></a>
						</td>
					 </tr>
					</tbody>
				</table>

				<input type="hidden" value="<{$aboutUs->ID}>" name="id" id="id" />
				<input type="hidden" value="<{$smarty.const.ACT_VALID_EDIT}>" name="act"/>
			</form>
		</div>
	</div>
</div>
<{include file="footer.html"}>
